home *** CD-ROM | disk | FTP | other *** search
/ Star Festival... a Return to Japan / Star Festival... a Return to Japan.iso / pc / STARFESTIVAL / 16d1.dir / 00001.ls next >
Encoding:
Text File  |  1999-04-27  |  1.8 KB  |  67 lines

  1. on startMovie
  2.   global gCursorReady, gKnobSprite
  3.   gCursorReady = 1
  4.   puppetSprite(48, 1)
  5.   set the mouseDownScript to EMPTY
  6.   set the mouseUpScript to EMPTY
  7.   sprite(13).visible = 0
  8.   sprite(20).visible = 0
  9.   gKnobSprite = 14
  10.   setUpKnob()
  11. end
  12.  
  13. on idle
  14.   global gCursorReady
  15.   if gCursorReady = 1 then
  16.     cursor(200)
  17.     checkCursors()
  18.     set the locH of sprite 48 to the mouseH
  19.     set the locV of sprite 48 to the mouseV
  20.     updateStage()
  21.   end if
  22. end
  23.  
  24. on checkCursors
  25.   global gMagCursor
  26.   set the castNum of sprite 48 to the number of member "curs1"
  27.   if rollOver(7) then
  28.     set the castNum of sprite 48 to the number of member "hotCursor"
  29.   end if
  30.   if rollOver(8) then
  31.     set the castNum of sprite 48 to the number of member "hotCursor"
  32.   end if
  33.   if rollOver(9) then
  34.     set the castNum of sprite 48 to the number of member "curs1"
  35.   end if
  36.   if rollOver(12) then
  37.     set the castNum of sprite 48 to the number of member "magCursor"
  38.   end if
  39.   if rollOver(17) then
  40.     set the castNum of sprite 48 to the number of member "hotCursor"
  41.   end if
  42.   if the castNum of sprite 22 and rollOver(22) then
  43.     set the castNum of sprite 48 to the number of member "deMagCursor"
  44.   end if
  45.   if rollOver(24) then
  46.     set the castNum of sprite 48 to the number of member "hotCursor"
  47.   end if
  48.   repeat with i = 15 to 17
  49.     if rollOver(i) then
  50.       set the castNum of sprite 48 to the number of member "hotCursor"
  51.     end if
  52.   end repeat
  53.   repeat with i = 32 to 33
  54.     if rollOver(i) then
  55.       set the castNum of sprite 48 to the number of member "hotCursor"
  56.     end if
  57.   end repeat
  58.   repeat with i = 40 to 42
  59.     if rollOver(i) then
  60.       set the castNum of sprite 48 to the number of member "hotCursor"
  61.     end if
  62.   end repeat
  63.   if rollOver(47) then
  64.     set the castNum of sprite 48 to the number of member "hotCursor"
  65.   end if
  66. end
  67.